<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Call</title>
</head>
<body>
    <script>
        var name = "Trump"
        // ...args rest运算符 余下的都是它的
        function gretting(...args){
            return `hello,I am ${this.name}`
        }
        const lj ={
            name:'雷军'
        }
        console.log(gretting.call(lj));
        
        
    </script>
</body>
</html>